package org.example.message.entity;

import java.time.LocalDateTime;
import java.time.LocalTime;

public class Message {
    public Message() {
    }

    private Integer id;
    private String from;
    private String to;
    private Integer type;
    private String content;
    private String time;

    public String getFrom() {
        return from;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Message(Integer id,String from, String to, Integer type, String content, String time) {
        this.id = id;
        this.from = from;
        this.to = to;
        this.type = type;
        this.content = content;
        this.time = time;
    }
}
